package com.cnap.multiclouldmgmt.model.microSvc.alg;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Map;

/**
 //成功更新算力指标值响应
 {
 "update_value": [
 {"indicator_name":"cpu_usage", "value":1.2},
 {"indicator_name":"memory_usage", "value":3},
 {"indicator_name":"disk_iops", "value":199},
 {"indicator_name":"disk_throughput", "value":299},
 {"indicator_name":"net_bandwidth", "value":399}
 ],
 //"单副本消耗CPU量" : "cpu_usage",（单位：核）
 //"单个副本消耗内存量":"memory_usage",（单位：G）
 //"单副本磁盘读写秒均次数": "disk_iops", （单位：次）
 //"单个副本磁盘读写速率": "disk_throughput",(单位：MB/s)
 //"单副本网络带宽": "net_bandwidth"(单位：Mbps)
 "code":200,
 "msg":"successfully update indicator values"
 }

 {		//未成功更新
 "update_value":[],
 "code": 400,
 "msg":"fail to update indicator values"
 }
 **/
@ApiModel(value = "com.cnap.multiclouldmgmt.model.microSvc.alg.IndicatorAlgValueModel",description = "算法算出来的值")
public class IndicatorAlgValueModel {

    //indicator_name
    @ApiModelProperty(value = "indicator_name")
    private String indicator_name;


    //value
    @ApiModelProperty(value = "value")
    private String value;

    /**
     * get
     *
     * @return Indicator_name
     */
    public String getIndicator_name() {
        return indicator_name;
    }

    /**
     * set
     *
     * @param indicator_name indicator_name
     */
    public void setIndicator_name(String indicator_name) {
        this.indicator_name = indicator_name;
    }

    /**
     * get
     *
     * @return Value
     */
    public String getValue() {
        return value;
    }

    /**
     * set
     *
     * @param value value
     */
    public void setValue(String value) {
        this.value = value;
    }
}
